home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
6-Developer Demos
/
Developer Demos-Ed.
/
Macintosh School® CD-ROM Demo
/
Macintosh SchoolÆ CD-ROM Demo
/
card_140735.txt
< prev
next >
Wrap
Text File
|
1990-08-14
|
15KB
|
774 lines
-- card: 140735 from stack: in
-- bmap block id: 140851
-- flags: 4000
-- background id: 14625
-- name: School (weekly)
----- HyperTalk script -----
on doMenu menuItem
if menuItem is "Lock" then
hide card button "Lock"
else pass doMenu
end doMenu
on groupThree
if not hilite of target then
repeat with index = 4 to 9
set hilite of card button id index to false
end repeat
set hilite of target to true
put short name of target into card field "Class"
end if
end groupThree
on groupFour
if not hilite of target then
repeat with index = 10 to 15
set hilite of card button id index to false
end repeat
set hilite of target to true
end if
end groupFour
on groupFive
if not hilite of target then
repeat with index = 16 to 21
set hilite of card button id index to false
end repeat
set hilite of target to true
end if
end groupFive
on resetCard
set hilite of card button id 4 to true
repeat with index = 5 to 9
set hilite of card button id index to false
end repeat
set hilite of card button id 10 to true
repeat with index = 11 to 15
set hilite of card button id index to false
end repeat
set hilite of card button id 16 to true
repeat with index = 17 to 21
set hilite of card button id index to false
end repeat
repeat with index = 22 to 26
set style of card button id index to opaque
end repeat
hide card button "Hilite"
show card button "Lock"
put short name of card button id 4 into card field "Class"
put 0 into card field "Times"
end resetCard
-- part 1 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=0 top=0 right=342 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 31 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=21 top=86 right=98 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Lock
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=11 top=33 right=48 bottom=26
-- title width / last selected line: 0
-- icon id / first selected line: 5068 / 5068
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Close
----- HyperTalk script -----
on mouseDown
set icon of me to "Close Box Hi"
end mouseDown
on mouseLeave
set icon of me to "Close Box"
end mouseLeave
on mouseUp
set icon of me to "Close Box"
lock screen
resetCard
pop card
unlock screen
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=4 top=315 right=334 bottom=23
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Legend
----- HyperTalk script -----
on mouseUp
--get the rect of me
--put the clickH - item 1 of the rect of me into x
--put the clickV - item 2 of the rect of me into y
--if x < y then
lock screen
resetCard
go to card "Legend" of this background
unlock screen
--end if
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 4000
-- rect: left=19 top=74 right=86 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Algebra 11 (1)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=19 top=86 right=98 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Algebra 12 (1)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=19 top=98 right=110 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Algebra 12 (2)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=19 top=110 right=122 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Biology 11 (1)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 8 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=19 top=122 right=134 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Biology 12 (1)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=19 top=134 right=146 bottom=172
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Biology 12 (2)
----- HyperTalk script -----
on mouseUp
groupThree
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: 4000
-- rect: left=198 top=74 right=86 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=86 right=98 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=98 right=110 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=110 right=122 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=122 right=134 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=134 right=146 bottom=318
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFour
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: 4000
-- rect: left=344 top=74 right=86 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=344 top=86 right=98 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=344 top=98 right=110 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=344 top=110 right=122 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=344 top=122 right=134 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 21 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=344 top=134 right=146 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
groupFive
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=35 top=192 right=203 bottom=113
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
if style of me is "opaque" then
set style of me to "transparent"
add 1 to card field "Times"
end if
end mouseUp
-- part 23 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=121 top=192 right=203 bottom=199
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
if style of me is "opaque" then
set style of me to "transparent"
add 1 to card field "Times"
end if
end mouseUp
-- part 24 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=207 top=192 right=203 bottom=285
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
if style of me is "opaque" then
set style of me to "transparent"
add 1 to card field "Times"
end if
end mouseUp
-- part 25 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=293 top=276 right=287 bottom=371
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
if style of me is "opaque" then
set style of me to "transparent"
add 1 to card field "Times"
end if
end mouseUp
-- part 26 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=379 top=192 right=203 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
if style of me is "opaque" then
set style of me to "transparent"
add 1 to card field "Times"
end if
end mouseUp
-- part 27 (button)
-- low flags: 80
-- high flags: 4000
-- rect: left=379 top=192 right=203 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Hilite
-- part 28 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=35 top=192 right=287 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put trunc((the clickH-34)/86) * 86 + 77 into item 1 of buttonLoc
put trunc((the clickV-191)/12) * 12 + 197 into item 2 of buttonLoc
if the loc of card button "Hilite" is buttonLoc AND visible of card button "Hilite" then
show card button "Hilite" at buttonLoc
repeat with index = 22 to 26
if buttonLoc is within the rect of card button id index then
send "mouseUp" to card button id index
exit repeat
end if
end repeat
else show card button "Hilite" at buttonLoc
end mouseUp
-- part 29 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=47 top=150 right=164 bottom=128
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Class
-- part 30 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=187 top=150 right=164 bottom=211
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Times
-- part 32 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=173 top=93 right=131 bottom=187
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Scroll
----- HyperTalk script -----
on mouseUp
lock screen
resetCard
go next
unlock screen
end mouseUp
-- part contents for background part 19
----- text -----
12
12
12
12
12
11
12
12
-- part contents for background part 20
----- text -----
47
80
53
54
52
102
48
13
-- part contents for background part 21
----- text -----
Abrosimoff, Michael John
Adams, Bryan
Alexander, Rick
Alexander, Susan
Allsop, Blair M.
Azimov, Isaac
Barisoff, Larissa
Bunyan, Paul
-- part contents for background part 22
----- text -----
Industrial
Academic
Academic
Academic
Academic
Academic
Academic
Commercial
-- part contents for background part 23
----- text -----
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-- part contents for background part 24
----- text -----
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-- part contents for background part 25
----- text -----
12.0
12.0
12.0
12.0
12.0
12.0
12.0
12.0
-- part contents for card part 29
----- text -----
Algebra 11 (1)
-- part contents for card part 30
----- text -----
0